; ModuleID = 'if.c'
source_filename = "if.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: noinline nounwind uwtable
define dso_local void @f() #0 !dbg !7 {
entry:
  %a = alloca i32, align 4
  call void @llvm.dbg.declare(metadata i32* %a, metadata !10, metadata !DIExpression()), !dbg !12
  store i32 8, i32* %a, align 4, !dbg !12
  %0 = load i32, i32* %a, align 4, !dbg !13
  %cmp = icmp slt i32 %0, 3, !dbg !15
  br i1 %cmp, label %if.then, label %if.else, !dbg !16

if.then:                                          ; preds = %entry
  %1 = load i32, i32* %a, align 4, !dbg !17
  %inc = add nsw i32 %1, 1, !dbg !17
  store i32 %inc, i32* %a, align 4, !dbg !17
  br label %if.end, !dbg !17

if.else:                                          ; preds = %entry
  %2 = load i32, i32* %a, align 4, !dbg !18
  %dec = add nsw i32 %2, -1, !dbg !18
  store i32 %dec, i32* %a, align 4, !dbg !18
  br label %if.end

if.end:                                           ; preds = %if.else, %if.then
  %3 = load i32, i32* %a, align 4, !dbg !19
  %div = sdiv i32 %3, 2, !dbg !20
  store i32 %div, i32* %a, align 4, !dbg !21
  ret void, !dbg !22
}

; Function Attrs: nounwind readnone speculatable willreturn
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1

attributes #0 = { noinline nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { nounwind readnone speculatable willreturn }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
!llvm.ident = !{!6}

!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 10.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
!1 = !DIFile(filename: "if.c", directory: "/home/hzx/SPAExamples/eg0101")
!2 = !{}
!3 = !{i32 7, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = !{i32 1, !"wchar_size", i32 4}
!6 = !{!"clang version 10.0.0 "}
!7 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
!8 = !DISubroutineType(types: !9)
!9 = !{null}
!10 = !DILocalVariable(name: "a", scope: !7, file: !1, line: 2, type: !11)
!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
!12 = !DILocation(line: 2, column: 9, scope: !7)
!13 = !DILocation(line: 3, column: 8, scope: !14)
!14 = distinct !DILexicalBlock(scope: !7, file: !1, line: 3, column: 8)
!15 = !DILocation(line: 3, column: 9, scope: !14)
!16 = !DILocation(line: 3, column: 8, scope: !7)
!17 = !DILocation(line: 3, column: 13, scope: !14)
!18 = !DILocation(line: 4, column: 10, scope: !14)
!19 = !DILocation(line: 5, column: 9, scope: !7)
!20 = !DILocation(line: 5, column: 11, scope: !7)
!21 = !DILocation(line: 5, column: 7, scope: !7)
!22 = !DILocation(line: 6, column: 1, scope: !7)
